package com.xujc.base;

public class Teacher extends Person{
    private String title;

    public Teacher(String name, int age, String title) {
        super(name, age);
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public String returnInfo(){
        return "姓名："+getName()+" 年龄："+getAge()+"  职称："+getTitle();
    }
}
